export  function getBrowser() {
	//#ifdef MP-WEIXIN
	// socket_.onMessage
	return {
		// name: "MiniWeixin",
		name: "Other",
		version: "1.0.0"
	};
	//#endif
	let explorer = window.navigator.userAgent.toLowerCase();
	if (explorer.indexOf("msie") >= 0) {
		let ver = explorer.match(/msie ([\d.]+)/)[1];
		return {
			name: "IE",
			version: ver
		};
	} else if (explorer.indexOf("firefox") >= 0) {
		let ver = explorer.match(/firefox\/([\d.]+)/)[1];
		return {
			name: "Firefox",
			version: ver
		};
	} else if (explorer.indexOf("chrome") >= 0) {
		let ver = explorer.match(/chrome\/([\d.]+)/)[1];
		return {
			name: "Chrome",
			version: ver
		};
	} else if (explorer.indexOf("opera") >= 0) {
		let ver = explorer.match(/opera.([\d.]+)/)[1];
		return {
			name: "Opera",
			version: ver
		};
	} else if (explorer.indexOf("Safari") >= 0) {
		let ver = explorer.match(/version\/([\d.]+)/)[1];
		return {
			name: "Safari",
			version: ver
		};
	}
	return {
		name: "Other",
		version: "1.0.0"
	};
}